/**
 * 
 */
package vn.smartware.co.java.net.http;

import java.security.cert.X509Certificate;

import javax.net.ssl.X509TrustManager;

/**
 * RelaxedX509TrustManager
 * @author thuctt
 */
public class RelaxedX509TrustManager implements X509TrustManager {

	/**
	 * @return X509Certificate[]
	 */
	public X509Certificate[] getAcceptedIssuers() {
		return null;
	}

	/**
	 * isClientTrusted
	 * @param arg0
	 * @return boolean
	 */
	public boolean isClientTrusted(X509Certificate[] arg0) {
		return true;
	}

	/**
	 * isServerTrusted
	 * @param arg0
	 * @return boolean
	 */
	public boolean isServerTrusted(X509Certificate[] arg0) {
		return true;
	}
	
	/**
	 * checkClientTrusted
	 * @param chain 
	 * @param authType 
	 * 
	 */
	public void checkClientTrusted(X509Certificate[] chain, String authType) {}
	
	/**
	 * checkServerTrusted
	 * @param chain 
	 * @param authType 
	 * 
	 */
	public void checkServerTrusted(X509Certificate[] chain, String authType) {}
}
